package com.ruoyi.common.annotation;

import java.lang.annotation.*;

/**
 * @author syc
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ExcelField {
    // 是否必填
    ExcelRequired required();

    // 字段名称
    String filedName() default "";

    // TODO 字段是否必填
    public enum ExcelRequired {
        must(true),
        no(false);

        private Boolean value;

        ExcelRequired(Boolean value) {
            this.value = value;
        }

        public boolean getValue() {
            return this.value;
        }
    }
}
